Yup, there was no use of two similar functions there. It has been implemented in Timer class itself. I initialized Timer class in the manager itself and it did work this time. I passed the created instance of Timer class to browser and preferences as an additional argument.