Heavy refactoring. Light / camera debug output.