It fucking works! Stupid exit conditions corrected.
Master Merge