Implemented frame syncing.