Removing use of the single var statement style.
Small refactor, use logger instead of console.