Add devptr member to automatically copy container