Add loggings for testing.