Adding hook support.