Added method to create the anonymous objects.