Small refactoring.

Changed variable name to be more readable. Improved log formatting.