Ethical codes are sets of ethical principles intended to offer guidance in deciding between right and wrong. Typically, they are needed by, and found in, documents of professional organizations. They work best when the person applies every relevant principle to the question at hand and scrutinizes all anticipated consequences, with a view to decision. The same procedure works even in conflict-of-interest situations, i.e. when otherwise good principles will achieve conflicting consequences; the decision should come from that principle which will generate the least bad consequences.