Added -r to run command and exit