Added a scan upgrade with 5 levels.
Added a debug upgrades command