Using Driver State Detection in Automated Vehicles