Ethan: Fixed bug that was causing differences from previous data to be calculated incorrectly.