Patched engine

Now uses context for BG