Removed unnessecary function