Support to new driver

It should be compatible with previous versions. Tell me if you think that I've coded something the bad way
Hm, ok then.