Made it work for machines with less traffik

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