Improvement of console logging