Update tm memory