Package detection