Maximum Demand Flexibility From Residential Homes