Create write_avg_across_homegroup