Changed return processing of commands to be more explicit.