Adding gates.