Added basic log saving.