Remove unused appendExp and appendState