Added recursive call to get all submodules