Fix a typo.
Add a pad function to make it easier to pad the various arrays.