Adds session API method