Refactored code for devices