Added some DOM selection caching.