Updating snippet reference code