Finish first implementation, add ta_wrap()