Mapreduce script changes