Merged tabulation code