Added missing require('fs')