Added some stuff to update the valves, will fix later tonight