Fixing sleep stmt