Renamed num_closures to get_num_closures