Refactored trace file as parameter