Unrolled the machine creation for loop