Can you please add a docstring for this function?