First impl of gaps in the input stream