Add logging, first working invisible block detection routine