Moved sleep into utilities so clients can use it for barrier testing