Gog and Magog and the birthpangs of Moshiach