Fixed issue with enumerating portals, and with locked door implementation.