Added threaded trajectory generator.