Moved sleep statement so that sleep still occurs if the file can't be found