Unstable! Refactoring.
Debug output.