Add function to set values for graphing.