Three lines of defense