Now using variable instead of hard-coding table name