Resolved the ratio problem and input problem.