Added 'fs' library functionality to fix issue