Implement exportVar method