Added OR gate, reset pin