Removed Unnecessary Global Variables (Compiles)

All of the ones used by MainTaskSM, not tested