def Set(state,command,name,value=True):
    """Set the state variable
    Sets a state variable with 'name' to 'value'. If 'value' is not specified, variable is set to True.
    """
    state.vars[name]=value
    return state