Updating trm script