Work seq algorithm