Applications of valves