Moved setting config of ES to ES class. Added 'box' parameter to WP settings.