Manipulation removing dependence on eval context

@helgemathee : Adding support for dgdirty and custom commands.