Experimenting with periodic get_dist routine