Final working copy of the match block provider function.