Made it work for machines with less traffic

I added some if statements to make this also work if there is less traffic on
your tapiriik installtion.