Add functions for setting input values