 Complete the following phrase:  For several months, the brigade undertook defensive duties, protecting lines of communication, before taking part in the unsuccessful Second Battle of Gaza in April 1917. After this, British planners decided to attempt an indirect approach, focusing their efforts on Beersheba, about from Gaza. In late October and early November, the brigade took part in the Battle of Beersheba; the breakthrough here paved the way for the opening of the Southern Palestine Offensive, after which the brigade participated in the advance north towards Jaffa on the coast. 