Refactor, pass params hash into Device