Added Couch and map function.