Taking exceptions into account