BUGFIX: Added require for 'fs'