Main overflow valve