Added support for OR conditions.