Replace deprecated print_containing usage