Add tm library to top