Betting almost working