Thermodynamic Formalism at Zero Temperature