Added support for subdocument conditions