Attempt at memory management.