Select a closure based on results