Added log block condition.

Needs to be moved to on block hit.