Added Javadocs.