Made sum selection an atomic action