Finishes auto update code