added options for tracing and speed