Added growing memory allocation