Added set/get variable functionality