Add trajectory reading support