Explain deps.
A bit more cleanup in session hook