Added basic scheduling to processor