This function is no longer used and can be removed.