Add -q to grep invocation where appropriate.