* Use local context instead of global variables (where possible)