Update input and track edges