MDL-36968 Move function print_recent_activity() to the block recent_activity