 		beacons = Db.shared.ref('game', 'beacons')
 		beaconRadius = Db.shared.peek('game', 'beaconRadius')
 		beacons.iterate (beacon) ->
-			current = beacon.get('inRange', client)?
+			current = beacon.peek('inRange', client)?
 			beaconDistance = distance(location.lat, location.lng, beacon.peek('location', 'lat'), beacon.peek('location', 'lng'))
 			newStatus = beaconDistance < beaconRadius
 			if newStatus != current

	Db.shared.modify 'game', 'teams', teamClient, 'teamScore', (v) -> v + points

	Db.shared.iterate 'game', 'teams', (team) !->
		if maxScore < team.get('teamScore') and teamMax isnt team.key()
			teamMax = team.key()
			maxScore = team.get('teamScore')
			newLead = true
	
	log "TeamMax: " + teamMax + " maxScore: " + maxScore + " newLead: " + newLead + " (2)"


	# Handle capturing
	updateBeaconPercentage(beacon)
	percentage = beacon.peek 'percentage'
	log 'Team ', neutralizer, ' is capturing beacon ', beacon.key(), ' (after neutralize)'

	beacon.set 'action', 'capture'
