First pass at a syncronizing script