Needed to remove $ in front of deviceType in $this->$deviceType