Added function to copy pad