Removing unused procedures