Added a replacement for getTargetBlock, which is deprecated. Resolves #13