Added include for logic_error