Fixed a few issues and improved the API.