Minor changes.
Implement remote transmition in batches.
Improve configuration. Some refactoring.