Smarter document extraction starts here.