Corrected sleep duration in sample code