Unrolled code into basic structures.