Changed states to thermodynamic_states for clarity.