Changed PAD value
Modifed parameters
Added debug messages