Added attempt to create function for rupgrade that does most of the work