Performance improvements. No longer stops scanning when hidden.