Sorry about the very late post I wanted to do more with this than I had originally so I had to rewrite it.