Wrote javadoc.