slightly rewrote it, might be a bit faster
Merge pull request #1 from flok99/patch-1

repeater: Rewritten protocol stack.