Finish jar updating function, refactor in progress