Bet parsing (beware, there is a bug occuring in 1/4 cases)