Output-Based Pay: Incentives or Sorting?