Enhancement: Added weakly referenced method support for hook callbacks