Refactored code so the array can be accessed w/o calling run