Better (simpler) sync script