Added support for Pco query templates.