What is the grammatical function of “thumma” here?

Book of Hajj: Sa’y between Safa and Marwa and the Day of Tarwiyah