Add support for async operations. Closes #14.