Added support for a writeblock as the output selection for a query