Using variables from mainconfig