Moved export action to the class. Refactoring.