Replaced hard-coded device names with defined constants.