Implemented most of GUI pattern sync.