Returns array instead of list in the trajectory