Blocking sleep instead of non-blocking sleep