Use command grouping to remove unneeded temp file