Added wait so server can bind to socket.