Refined configuration functionality. Added settings.