Volume device in code