Add Javadoc and helper method.