Propagate function name if it's contained in a loaded module.
Support multiple segments and process all of them at once.