Add debug prints to webhook()