Added: Now storing the data with a separate thread instead of every time when a packet arrives. This allows to store data which is coming in very frequently.