Adding the reference file
Consuming both from stdin and a file handle