Add patch to allow configuration on max instances in a activity