Added support for nested boolean expressions.