Changed to aligned memory allocation.