Logging in loading process. refactoring.