Create a local variable and assign %device% to it. You can also use %value% and a few others.
This should help