Added support for result returning commands