Changed variable names for keys in.
Added load output on the statemachine.