Set sleep equal to the function rather than entire module