Set up trace file and fixed it up to work