Create tempcode