Wrapper for TMApi