Return null when input stopped