Removed unneccesary function