Add runParser function to parse pad's array