Created a new function and fixed the get_changesets