Modified to compare three different scheduling heuristics.