Don't use deprecated interface.