Created unified class that can retrieve and send data + refactoring.