Modify to take file contents via stdin