Finished the GP heuristic.