I admit I don't understand what this function does or why we have many of them that look the same.