Clean up variable context
Automatically free memory when done fetching
Correct function context