Renamed the function to specify external dependencies.