Adding port information in the subscan and fixing assignment