Added JavaDocs.