Adding flatMap.