Remove sleep statements, add quotes to if statement params