Blatantly inspired by MongoDB Oplog