First octant code completed (in theory).