Updated API according to README.md