Add support for trajectory export.