Fixed not enough memory bug; scheduling now works