Added take-dog-f function.