Device: Reorder function declarations