Extract settings.

Add javadoc