Changed the way symbols are referenced

Referencing symbols as strings doesn't seem to work anymore,
using the variable name instead.