Look up table generation fully working again.