Added a 1sec sleep between listen() and join() in main.