Better settings handling.