Decide on globals vs. returns.