Removed some unnessecary code.