Extract decoding logic
Output rank