Clean up total mem code and print if we skip.