Fixed validation of driving functions