key_commit: First run on mail log and fixing some issues with deposits