Explict cast value past to nanosleep to a long to prevent integer overflow warning.