Added loging to both files.