Included an extra parameter in the pup function.