Renaed new_device to get_device