Re-add resource selection algorithms

from #48