Worked on #1. Found out that events accumulate while reading data file. This needs to be prevented maybe by running data reading on a separate thread.