New check_driver() function