Removes unneeded function