Improved the mechanism to add new columns in the function ProcTraj