Change sleep to use ms