Added more error injection code.