Trace averaging now working.