Update reference code