Introduced flatMap for Mapper.