Extracted out add_padding() steps

..looks like it’s not just adding padding..?