Added semi-global padding variable