Attempt at synchronization

Does not work well yet, disabled