Adding some utilities for manipulating devices.