This function is not used now. Can it be deleted?