Added sleep statement