Still needs a little cleaning up and pruning but it does work.