If this is only used for DOS, can't we remove this function entirely?