Pass the previous root back to the commit call