Added detection logic for launch, ping and landing