Added two public methods to the API. Resolves #11