Add pause back in, and state logging