Fix bug in sender--buffer not getting reset.
Improved config definition.