Adding support for window synchronization.