Tweaked teaked captcha function