integrated with node and updated the timer