Converted statSync -> stat