Added document and attachment loading