How does a gas control valve work