Maybe we can add a comment indicate that this function is deprecated?