This function is duplicated. Remove.