1-level recursive code kept. Abandoning recursion.