updated tmst_output table with third column and added logic to main code to make it happen.