It also occurs by accidental ingestion of an insect containing the cysticercoid. An example is either cysticercoid, cysticercus, or a hydatid cyst. Then, an intermediate host will ingest an egg, which develops into a cysticercoid larva. The tapeworm penetrates the ant's gut wall and develops into a cysticercoid within the haemocoel. Once inside the beetle, the eggs mature into a cysticercoid. An oncosphere develops into a cysticercoid which has a tail and a well-formed scolex. It can take various forms, for example, the hydatid cyst, strobilocercus, cysticercus or cysticercoid.