Replace hook

Signed-off-by: Waly Kerkeboom <me@waly.me>