GAS side code for the previous commit.