Improving the Earthquake Resilience of Buildings