Generalized summarize_fn to handle dynamic acquisitions