Propogating the reference name to a variable, also whitespace change...
Implemented collision protection for refs.