Added Spark ending statement