Changed the group time synchronization from average to max

The choice stage time synchronization function was also added