Fixed multi-level field attachment bug.
Added debug to Left construction.
Some general code re-org.