Work and cleanup