Generate entities