Selection of resources