Added drivecheck function