Add NewAttribute and NewMechanism