He quickly implemented an austerity program , raised taxes , attempted to control spending , and tamed inflation .