The dog did a trick for a treat.