Added all_neighbors keyword to the summary_cleanup function.