Removed some unneccisary code.