Added Run Script and fixed bug SPARK-2025