Fixed thread sleep management.