Added a lot of crappy code. go back to older version