Changed history to documents