Corrected the 10ms timeout to 5 seconds