Add new function to get device descriptor