 			if checkinLocationFunction?
 				clearInterval(checkinLocationFunction)
 				checkinLocationFunction = undefined		
-				window.inRangeCheckinRunning[Plugin.groupId()] = false			
+				window.inRangeCheckinRunning[Plugin.groupCode()] = false			
 	Obs.observe ->
 		deviceId = Db.local.peek 'deviceId'
 		if not deviceId?

															Dom.text 'Your accuracy of '+accuracy+' meter is higher than the maximum allowed '+beaconRadius+' meter.'
											else
												if inRangeValue?
													if not (inRangeCheckinRunning[Plugin.groupId()]?) or not (inRangeCheckinRunning[Plugin.groupId()])
														checkinLocation()
														setInterval(checkinLocation, 30*1000)
														checkinLocationFunction = checkinLocation
														window.inRangeCheckinRunning[Plugin.groupId()] = true
												else
													log 'Trying beacon takeover: userId='+Plugin.userId()+', location='+latLngObj+', deviceId='+deviceId
													checkinLocation()
													if not (inRangeCheckinRunning[Plugin.groupId()]?) or not (inRangeCheckinRunning[Plugin.groupId()])
														setInterval(checkinLocation, 30*1000)
														checkinLocationFunction = checkinLocation
														window.inRangeCheckinRunning[Plugin.groupId()] = true
										else if (not within and inRangeValue? and (inRangeValue == deviceId || inRangeValue == 'true'))
											log 'Trying stop of beacon takeover: userId='+Plugin.userId()+', location='+latLngObj+', deviceId='+deviceId
											checkinLocation()
											if inRangeCheckinRunning[Plugin.groupId()]
												clearInterval(checkinLocationFunction)
												window.inRangeCheckinRunning[Plugin.groupId()] = false
				else
					log 'Location could not be found'
		Obs.onClean ->

			Db.local.set 'gameNumber', remote
			# Do cleanup stuff
			Db.local.remove 'currentSetupPage'
			if inRangeCheckinRunning[Plugin.groupCode()]
				clearInterval(checkinLocationFunction)
				window.inRangeCheckinRunning[Plugin.groupCode()] = false

	# Ask for location
	if !Geoloc.isSubscribed()
