Removed un-necessary code.

Realised there are better ways than what i was using.