Error Checking in KnowledgeBase init