Added init function for the pads part.