Improved memstat command