Changed how pet is added to the application