Modified to use VARS file