Add registerCommand() API