First stab at sync script.