Added base case.