Removing usage of sleep