Increased initial wait time to 10 second to give it enough time to get hostname.