Third-party code used by Viewfinder