Added tm function to name sessions