Pruning uneeded functions.