Running. Some refactoring and more preparation for the dynamic material loading