Could you improve this comment by adding what the following function does?