I'm trying to avoid repeatedly looking up elements when it's not necessary.