Adjusted logging a bit.