Day Two of the rewrite. This is much better than what I have now. Half the length and no problems at all