Pseudo Binary Decoder Function