Refactored code for interface and hyperion device.