Initialize the private state buffers to 0 for safety and determinism during debugging
Other than checking the previous event type, also make sure it already existed by comparing the previous timestamp