Added $controlProvider and $preferences