NN-10635: Implement setVariables, refactor getVariablesData.