Add logging
Merge branch 'master' into material