Added support for mutli line queries