More stuff added. hopefuly should have scheduler class constructor
correct.