Make global_tallies allocatable instead of automatic.