     srvr.send "map "+lobby.mod+";"
     console.log "server configured"
     new Fiber(->
-      Meteor.setTimeout(->
-        finalizeInstance(serverObj, lobby, instance)
-      , 10000)
+      finalizeInstance(serverObj, lobby, instance)
     ).run()
   ).on('end', ->
     console.log "rcon disconnected for "+instance.id

  startFindServer lobby._id

finalizeInstance = (serv, lobby, instance)->
  lobbies.update {_id: lobby._id}, {$set: {status: 3, serverIP: serv.ip+":"+instance.port}}
  pendingInstances.remove {id: instance.id}

queueProc = ->
  #Find elegible servers

Rcon = Meteor.require('rcon')
ws = Meteor.require('ws').Server
serverPassword = "kwxmMKDcuVjQNutZOwZy"
serverVersion = "1.0.9"
idCounter=100
sockets = {}
pendingInstances = new Meteor.Collection "pendingInstances"
@activeInstances = new Meteor.Collection "activeInstances"

Meteor.startup ->
  servers.remove({})
  pendingInstances.remove({})
  activeInstances.remove({})
  lobbyQueue.find().observeChanges
    added: (id, fields)->
      queueProc()
