Replaced switchopen by logic