Set defaults when class is created.