What do you think about unanonimizing this function and just passing it as a callable here?