Fix IsConsistent function
Make sure to save enough room in buffer for largest events