Some better memory maintenance.