It's worth noting this API has been deprecated and there is a newer one that should be used.