Updated referance boolean

Ensured that that the reference boolean was called when using refsonly
environment.