Code for VEP tests