He's going to figure it out just in time to save Laurel from walking into the trap that Derek and Jenna have set for her. That's kinda why I made up that whole thing. He is able to do new things under moments of extreme duress.