Use the AS built in API function
Merge pull request #92 from wilsonge/patch-1

Use the AS built in API function