LOD Recursion outlined

The core of the recursion's logic is implemented and disassembled into
subroutines, which are left to fill in.