Altered temp table formats, cleared older code