Initialize Device type.