Check for 'ag' first.