Branch new function. Name suggestion: `poll_input_buffer`.