Change Log

- Fixed a bug where added logs in a particular order very quickly would through an exception.
- Added tests for data integrity.