Added enable_ha parameter.