Added code to syncronize digital segments