The period when the larva is within its cocoon is a time of intense biological activity since the larva is being transformed into an adult animal.