Removed unnessesary code.