Added option for flexible padding offset