Adding the hidden state conversion tool