Worked more on planes and refactored redundant code out.