Step functions return a closure