Changed the type of flatMap to AccountResult.