Have modified it to auto-create a seekable stream in case of non-seekable inputs.