Support chemical formula and vector of energies.