Changed fs.stats() to fs.stat()