Set class attributes once.