Output for various partitions, set_annotation, some refactoring.