Adding document user functionality