Valves defined by function