SetSchedule logic

Crashes on memory leak now
Complete constructors. Does not crash now.

Otherwise there will be invalid access to some pointer