Add trace to file support