Added testing to detect a second packet