Adding solution for SparkEnv