Gandalf just needs a minute to think things through with his trusty pipe, then he'll know what to do.