Changed status module to use externally declared context struct, changed
related functions internally