I was subjected to some modifications due to changes to the specifications of TMP own library.