Optimizing Energy Usage through Demand Response