Added reference code