Just an idea. When having any variable on inputs or outputs you can drag it and place it down from the inspector. To explain, you set the variable either as input or output then, if you need that variable you can drag it from the inspector on top of the State.
Let me know what you think!