Steal and document Ryan's CIDER hook.