Move the assert into temptable