Add -q to grep for proper functioning