Move `zeroPad` to outer scope