Refactored component refenrences for mesh, now caching in arrays