Using the accumulator algorithm shouldn't be so hard..., or is it?