A little bit more modular. Add initPassport and initDevices.