Updated the function comments