Overwrote script with Fred's version with the +1 change