Fixed transact
Re-wrote inline compiling using codecopy instead.