Tons of changes, added context

scheduler still needs implementing as well as assembly global flag check