Added map on top of flatMap.