Make recursive method easier to read