Workaround for getTargetBlock deprecation.
Debug message removal.