Logged distance in console.

Logged distance in console.