Sync with submitted PR.
Bump version to v0.1.2.