Simplify decode_signal()