Added command running sequence for RMI