Removes useless functions