Started document algorithm