Autobauding finally works, it is magic!

Really lads, the code I have written is so awful I can't even look at it
:<