Added code to modify thread posts