Corrected grow function