Adding auto mearning feature implementation