Previous commit also added portal logic. Fix for type 10