Now using scheduling with recursion