Changes in handling memory allocation