Added lazy creation of traj