Finished tabulation logic.