Can you expand on what this function does? Maybe add an example