Add timeout option for map reduce