Added state conversion method