Removed all scheduling.
Fixed compiler errors.