Limiting number of schedulers.
Fixed check for looping host.
Notifying scheduler when not running in test mode.