Use atoms for state