Change TotalTransferred to long to prevent overflow