Added variable caching of element