Add helper method for setting model variables