Reset state and add logs