Improved command memory usage.