Added some Javadoc.