Ini File check fixed.
Performance improvement madded