Use new ANSI API, closes #146
Release v0.5.2