Added fromOldInstance method.