 selectedFeature = null
 
 # User variables
-loggedIn = false
 editor = ""
 difficulty = null
 location = null

  ###
  # Open the currently displayed OSM objects in the selected editor (e)
  ###
  if not loggedIn
    window.location.pathname = '/oauth/authorize'

  editor = e
  if map.getZoom() < 14
    msg msgZoomInForEdit, 3

  # This should be harmless if the dialog box is already closed
  dlgClose()

  msg msgMovingOnToTheNextChallenge
  setDelay 1, msgClose()
  payload = {
