Update all gates