For random reference code