Added support for lists.

Max size for lists and strings can be configured. This means
that the size of the data being sent can be maintained under
control.