Added function and logical for autolearning of Network