Fixed input logic.