Adding Operate method call to the periodic function, right now it is working in a very limited state!