Removing a useless function