I am very confused as to what this function does (if it is still used).