Shortened the syntax
Refactoring:
- Average calculation
- Simpler data sending