Added support for multi-line results