Added ability to store the goal name - the query, constraint, traj constraint, etc