adjusted log place.
Added code example.