Bugfix - hooks function is static