Added support for Apache Tez.