Calling preupgrade-assistant API directly