Changed trasferedBytes from int to long