Dumping thetas to file.