CMS-4162 Implement command function.