Update deprecated add(period, number) use #151