Improved debugging.
Merge branch 'test' into dev