Updated TransAPI, fixes #389

@madmaxoft is this the right API usage?