Updated code to correctly write to disk.
Merge branch 'master' of https://github.com/jmjwozniak/discovery-engines