Added first task logic to scheduler.

Also made replay script work with mulitple parallel schedulers.