Create max_input