Make f a parameter of grow.