Turn device into a proper object.