Added Foundation functions import before vars to allow calc functions in vars.