Have to fix memory leak in Scheduler.cpp, problem with pushing and popping