Changed session @variables to local