Updates to getChangeset function