Updated template to read from standard in