Use getSleepTime instead of hardcoded value