SMS: Building failures : diagnosis and avoidance /