Added support for output formatting and client meta dict