Solved. &$var refers to the variable reference rather than a variable value.