Added basic support for MapReduce