Rough draft of macro heuristics implementation.