Am I missing something? Is this function complete un-used?