Fix the function signature and documentation.