Fixed a threading problem that would cause the data from a previous minute to get carried over occasionally.