Added work with devices (open/close), and IPMP logging