Change memory allocation to allow dynamic grow