Add subscribe hook