Improving methods of resident selection.

Improving methods of resident selection.