driver must be an instance variable. Added support for doing so