Also how do you ensure that the return int from executorSelector is a valid index?