@benbjohnson I think this function should only be called when there is a state change. I have removed the unnecessary calls of this function.