Defining device variables