Deleted some unnessisary code