Include functions for allocating instances in phase 2.