Building domain and vars from input files, not hard-coded.