Trying to sleep instead of using a callback,