Adding is closed check statement