Store needed packets in a Dict, refactor output function
set range of trace