getAllVariables() closes #9