Strugglin to implement rolling in programs correctly