Implement entity generation.