Option to wait for the command to complete