Makes setReference working