Fixed the retrieval of the function name.