Updated membership API example.