Tmp Removed and AI modified