Remove globals, instead use an application context