A* API fix

Fixes #234