Minor refactor
Capture the input stream in an animation loop