Moved document save call to delegator