Updated API example.