More logic working.
Moving to executing one frame at a time.
Fix ctx ref.
Cleanup
Remove double run.