Updated the method to use the proper recursive call