Added support for Spark application