Optymalizacja metody ustawienia