Combine calls to the shell into one