Terrible code

I am clean up a mess.