Added reference code function and ObjectTable