Add start of input handling