Added usage of global defined variable PADSIZE