Support to new driver

It should be compatible with previous versions. Tell me if you think that I've coded something the bad way
Well, I think you should put something like 

```
new_type = false
```

here to make sure it works the same way as it did with the old version.