Changed from int based API to string based.