Move fixed code out of transaction table loop