Returning an object for public API.