Added auto learning capability.