Disabling legacy query.