Added insertion heuristic