Returning result from recursion.