First (sometimes) working version of slide sync.