Output to file. Unit tests.
Clean-up.