Implemented document viewing.