Change: Register appropriate hook callbacks as a weakly referenced ones