First go at quitting logic