Corrected - missing inclusion  of fs.