Methods should be public so they can be accessed in hooks