Append document