Scan over trajectory now added