Finished implementing change function