Rename decode to decode_frame for clarity