Add API method to retrieve the SID. Fixes #93