Fix issues with writing files. Add assembly to project.