Add class infrastructure.