Fix var, separate functions.