More optimizations.
Javadocs.