This function doesn't have any documentation or code comment - what does it do?