Added spark_mem attribute.