Made a bunch of methods public so they can be used from user-code: