changes to Logger (incorrect read format...also extra writing!). Buggy code but no hard crashes!