Refactoring: Lambda not needed
Refactoring: Swapped recursions with repeat :)