Working Hook library (testing on notepad)