Make it efficient if you've bothered to make this comment. Why not index each of the components before doing the calculation?