Fixed memory management.