Will switch to using foreach here.