Use init(..) function to build DeviceContext