Implement RMD command