Moved listener thread to start sooner.