Fleshed out the code to the point where I beleive it is good for initial
tests. Trying to sort out a simulation solution.