Now saves and loads everything properly (except InputVariables)