Removed has_input logic