Better packet detection