Started using realloc properly.