Improved console logging