 					# Check if there should be progress
 					if competing.length == 1
 						# Team will capture the flag
-						log 'Team ', competing[0], ' is capturing beacon ', beacon.n
-
-
-
+						activeTeam = competing[0]
+						beacon.set 'nextOwner', activeTeam
+						if owner == -1
+							# Capturing
+							log 'Team ', activeTeam, ' is capturing beacon ', beacon.n
+
+
+						else
+							# Neutralizing
+							log 'Team ', activeTeam, ' is neutralizing beacon ', beacon.n
 
 					else if competing.length > 1
 						# No progess, stand-off

	log 'Adding marker: lat=', location.lat, ', lng=', location.lng
	Db.shared.set 'game', 'beacons', location.lat.toString()+'_'+location.lng.toString(), {location: location}
	Db.shared.set 'game', 'beacons', location.lat.toString()+'_'+location.lng.toString(), 'owner', -1 
	Db.shared.set 'game', 'beacons', location.lat.toString()+'_'+location.lng.toString(), 'captureValue', 10

# Set the round time unit and number
exports.client_setRoundTime = (roundTimeNumber, roundTimeUnit) ->

			#log 'beaconLoop: beacon=', beacon, ', beaconRadius=', beaconRadius, ', distance=', beaconDistance, ', current=', current, ', new=', newStatus
			if newStatus != current
				if newStatus
					owner = beacon.get 'owner'

					# TODO: move lower, after updating other data
					log 'Adding to inRange: id=', client, ', name=', Plugin.userName(client)
					beacon.set 'inRange', client, 'true'
