Added speed heuristic and fixed printing bug