Added conditionals for switching mixing valve to inject and load