Changed GetVariables class to include functions

Does not work correctly, need to figure out how to get classes running properly.