Deleted unnessesary code