Added handling of the login queue.