Modified input handling.