Changing the default behavior of API sleep