Reorganized captcha code.