Deleted unneccesary code