Added a simpel API.