Decoding working, function input breaks