Add state prop to generated variables

Signed-off-by: Tim Smart <tim.smart@arisechurch.com>