Brought over a script we are not using for this analysis