Updated to reflect changes to the API

Also added a line indicating how to display an alert.