First implementation for RollingCode