Thermodynamics and Spontaneity