Implement frame synchronization.