Got rid of the averaging function for slave clock