Change states while program runs