Adding session API