Added command processing.