Some improvements: Autocommit turned off and only commit if the whole file was OK, also 'better' log info (currently simply logs to stdout).