Raw code: accumulator simulation