Simplified function __cmd_xre