Working versioning script