What were Schipperkes bred for?

What were Schipperkes bred for?
Schipperkes can be traced back to Belgium in the 1600s, where they were bred down from the now-extinct sheepdog Leauvenaar. They were used as watchdogs, companions, ratters, and shepherds.