Silence output while checking for 'ag'